package com.fushenlan.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fushenlan.Vo.CertificateInfoVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * 居民表数据库实体类
 *
 * @author Administrator
 * @date 2022/4/21 14:27
 */
@Data
@TableName("inhabitant_info")
public class InhabitantInfoDO {

    /**
     * 主键id
     */
    @TableId(value="id",type= IdType.AUTO)
    private Long id;

    /**
     * 家庭id
     */
    @TableField(value = "familyId")
    private Long familyId;

    /**
     * 所属街道
     */
    @TableField(value = "streetCode")
    private String streetCode;

    /**
     * 所属居委会
     */
    @TableField(value = "neighborhoodId")
    private Long neighborhoodId;

    /**
     * 角色id,可以区分是居民方式登录还是居委会方式登录 1-居民 2-居委会
     */
    @TableField(value = "roleId")
    private String roleId;

    /**
     * 是否注册
     */
    @TableField(value = "registered")
    private Integer registered;


    /**
     * 所属小区
     */
    @TableField(value = "residentialId")
    private Long residentialId;

    /**
     * 与本人关系
     */
    @TableField(value = "relationId")
    private Integer relationId;


    /**
     * 楼号
     */
    @TableField(value = "buildingId")
    private Long buildingId;

    /**
     * 室号
     */
    @TableField(value = "houseId")
    private Long houseId;

    /**
     * 用户名
     */
    @TableField(value = "userName")
    private String userName;

    /**
     * 证件类型
     */
    @TableField(value = "identifyType")
    private Integer identifyType;

    /**
     * 证件号
     */
    @TableField(value = "identifyNo")
    private String identifyNo;

    /**
     * 手机号码
     */
    @TableField(value = "phoneNumber")
    private String phoneNumber;

    /**
     * 微信openid
     */
    @TableField(value = "openId")
    private String openId;

    /**
     * 用户来源 后台导入 小程序注册
     */
    @TableField(value = "sourceChannel")
    private Integer sourceChannel;

    /**
     * 创建时间
     */
    @TableField(value = "createDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    /**
     * 更新时间
     */
    @TableField(value = "updateDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateDate;
}
